package hello

import (
	"context"

	v1 "demo/api/hello/v1"
	"demo/internal/dao"
)

func (c *ControllerV1) UserDelete(ctx context.Context, req *v1.UserDeleteReq) (res *v1.UserDeleteRes, err error) {
	// return nil, gerror.NewCode(gcode.CodeNotImplemented)
	_, err = dao.User.Ctx(ctx).WherePri(req.Id).Delete()
	return
}
